package cn.edu.cdut.dao;

import cn.edu.cdut.model.StudentInfo;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * Author  kobe
 * Created on 2017-05-25-11:39
 */
public interface StudentInfoDao extends CrudRepository<StudentInfo, Long> {
        StudentInfo findByStuId(String stuId);
        List<StudentInfo> findByGrade(String grade);
        Iterable<StudentInfo> findByStuSubject(String stuSubject);
}
